package com.itheima;

public class JIeCheng {
    public static void main(String[] args) {
        int sum = jieCheng(12);
        System.out.println(sum);
    }

    public static int jieCheng(int n) {
        if (n == 1) {
            return 1;
        }
        return n * jieCheng(n - 1);
    }
}
